#include <initializer_list>
#include <iostream>
using namespace std;

int makeSum(initializer_list<int> values)
{
	int total{0};
	for (int value : values)
	{
		total += value;
	}
	return total;
}

int main()
{
	int a{makeSum({1, 2, 3})};
	int b{makeSum({10, 20, 30, 40, 50, 60})};
	std::cout<<"Totoal sum of 1 to 3 : " <<a<<'\n';
	std::cout<<"Total sum of  b :  " <<b <<std::endl;
}
